<?php

namespace app\common\model;

use think\Model;

class Leave extends Model
{
    protected $autoWriteTimestamp = true;
    public function getgrade(){
        return $this->hasOne('\app\common\model\Grade','id','grade_id');
    }

}